package user

import "github.com/gin-gonic/gin"

type Register struct {
	UserName string `json:"username"`
	Pass     string `json:"password"`
	Email    string `json:"email"`
}

func (r *Register) CheckParams(context *gin.Context) error {
	if err := context.ShouldBind(&r); err != nil {
		return err
	}
	return nil
}
